num=0
for ge in range(1,5):
    for shi in range(1,5):
        for bai in range(1,5):
            if ge!=shi and shi!=bai and ge!=bai:
                he=ge+shi*10+bai*100
                if he>100 and he<=999:
                    num=num+1
                    print(he)
print("总数:",num)
